package com.biz.primus.ms.oms.dao.po.returns;

import com.biz.primus.ms.base.jpa.po.BaseEntity;
import lombok.Data;

import javax.persistence.*;

/**
 * @author yanweijin
 * @date 2017/11/9
 */

@Data
@Table(name = "oms_return_item", indexes = {
		@Index(columnList = "itemId", name = "idx_item_id"),
		@Index(columnList = "productCode", name = "idx_product_code")
})
@Entity
public class OmsReturnItem extends BaseEntity {

	@ManyToOne
	private OmsReturn returns;

	@Column(length = 200)
	private String productName;

	private Long itemId;

	@Column(length = 50)
	private String productCode;

	private Integer finalPrice;

	private Integer quantity;

}
